package demo;

import com.github.javaparser.StaticJavaParser;
import com.github.javaparser.ast.CompilationUnit;

public class Main {
    public static void main(String[] args) throws Exception {
        String code = "public class HelloWorld { public static void main(String[] args) { System.out.println(\"Hello World!\"); } }";
        CompilationUnit cu = StaticJavaParser.parse(code);
        System.out.println(cu.toString());
    }
}

